Fixup r109698, add setter for $namespaceNames and use proper accessors in the tests.